import request from "@/libs/request";

const basePath = '/appcloud-portal' ;

export const apiUrls = {
  deleteRole : basePath + '/role/deleteRole/',
  listRole : basePath + '/role/listRole',
  saveRole : basePath + '/role/saveRole',
  updateRole : basePath + '/role/updateRole',
}

//删除角色
export async function deleteRole(id){
	return request( apiUrls.deleteRole + id, {
      method:'POST',
  })
}


//获取角色列表
export async function listRole(params){
	return request( apiUrls.listRole, {
      method:'POST',
      body:params
  })
}



//保存角色信息
export async function saveRole(params){
	return request( apiUrls.saveRole, {
      method:'POST',
      body:params
  })
}

//修改角色信息
export async function updateRole(params){
	return request( apiUrls.updateRole, {
      method:'POST',
      body:params
  })
}
